package com.leyou.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Ysr
 * @since 2022-07-05
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户表主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "序号")
    private String serialNumber;

    @ApiModelProperty(value = "编号")
    private String identifier;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户头像")
    private String userPhoto;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "会员分类：01：超级乐享卡，02：尊享卡，03：SVIP  04: 该用户不是会员")
    private String memberType;

    @ApiModelProperty(value = "用户手机号")
    private String userMobile;

    @ApiModelProperty(value = "用户等级")
    private String userLevel;

    @ApiModelProperty(value = "用户启用状态：01：启用，02：禁用")
    private String userStatus;

    @ApiModelProperty(value = "删除标志：01：使用，02：已删除")
    private String deleteFlag;

    @ApiModelProperty(value = "添加时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    @ApiModelProperty(value = "下单次数")
    private Integer orderTimes;

    @ApiModelProperty(value = "兑换次数")
    private Integer exchangeTimes;

    @ApiModelProperty(value = "下单总金额")
    private Integer totalOrderAmount;

    @ApiModelProperty(value = "分享次数")
    private Integer sharingTimes;

    @ApiModelProperty(value = "签到奖励金")
    private Integer signInBonus;

    @ApiModelProperty(value = "积分")
    private Integer integral;

    @ApiModelProperty(value = "登录次数")
    private Integer loginTimes;

    @ApiModelProperty(value = "余额")
    private Integer balance;

    @ApiModelProperty(value = "购物返现")
    private Integer shoppingForRefund;

    @ApiModelProperty(value = "优惠券")
    private Integer coupon;

    @ApiModelProperty(value = "参加秒杀的次数")
    private Integer seckillCount;

    @ApiModelProperty(value = "会员码")
    private Integer memberCode;

    @ApiModelProperty(value = "兑换金额")
    private Integer exchangeAmount;

    @ApiModelProperty(value = "参加的活动")
    private Integer activitiesAttended;

    @ApiModelProperty(value = "邮政编码 ")
    private Integer postalCode;

}
